# This dockerfile is for spring boot jar app.
# Version 1.0

# Base images.
FROM 10.36.20.43:5000/tomcat:8

# Author.
MAINTAINER dailibo <dailibo@wisdytech.cn>

ADD ./target/linkmes-equipment.war /usr/local/tomcat/webapps/

#Set timezone
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
  && echo 'Asia/Shanghai' >/etc/timezone \
  && mkdir -p /var/log/mes-sm

# Define default command.
CMD ["catalina.sh", "run"]

# Expose ports.
EXPOSE 8080